import baseConfig from "./baseConfig";
import i18n from "@/locales/index.js";

const { t } = i18n.global;

export class MSLLabel extends baseConfig {
  //   id = getUUID();
  name = "MSL标签纸";
  type = "Labels";
  picName = "";
  qaStamp = 1; // 是否需要印章  1-否 2-是
  qaStampNo = "";
  qaStampx = 0;
  qaStampy = 0;
  qaStampAngle = 0;
  qaStampDesc = "";
  constructor(obj) {
    super();
    for (let key in obj) {
      this[key] = obj[key];
    }
  }
}

let label1 = new MSLLabel({
  length: 60,
  width: 80,
  name: t("material.label") + " 1",
  picName: "msl",
  partDesc: "msl-1 " + t("material.labelDesc"),
});
let label2 = new MSLLabel({
  length: 50,
  width: 80,
  name: t("material.label") + " 2",
  picName: "msl",
  partDesc: "msl-2 " + t("material.labelDesc"),
});

export default [label1, label2];
